// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** 生成图片验证码 GET /captcha/image */
export async function generateCaptcha(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.generateCaptchaParams,
  options?: { [key: string]: any },
) {
  return request<API.CaptchaInfo>('/captcha/image', {
    method: 'GET',
    params: {
      // width has a default value: 130
      width: '130',
      // height has a default value: 40
      height: '40',
      ...params,
    },
    ...(options || {}),
  });
}
